<template>
  <el-dialog v-model="dialogVisible" title="修改密码" width="500px" draggable>
    <!-- <span>This is Password</span> -->
    <el-form ref="ruleFormRef" label-width="100px" label-suffix=" :" :rules="rules" :model="drawerProps">
      <el-form-item label="用户姓名" prop="userName">
        <el-input v-model="drawerProps.row!.userName" placeholder="请填写用户姓名" clearable></el-input>
      </el-form-item>
      <el-form-item label="密码" prop="userPass">
        <el-input v-model="drawerProps.row!.userPass" placeholder="请填写用户密码" clearable></el-input>
      </el-form-item>
    </el-form>
    <template #footer>
      <span class="dialog-footer">
        <el-button @click="dialogVisible = false">取消</el-button>
        <el-button type="primary" @click="dialogVisible = false">确认</el-button>
      </span>
    </template>
  </el-dialog>
</template>

<script setup lang="ts">
import { ref, reactive } from "vue";
const info = reactive({
  oldPass: [{ required: true, message: "请填写" }],
  newPass: [{ required: true, message: "请填写" }]
});
const rules = reactive({
  userName: [{ required: true, message: "请填写" }],
  userPass: [{ required: true, message: "请填写" }]
});
const dialogVisible = ref(false);
const openDialog = () => {
  dialogVisible.value = true;
};

defineExpose({ openDialog });
</script>
